﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 修改手机号参数模型
    /// </summary>
    public class ModifyPhoneParam
    {
        /// <summary>
        /// open_id
        /// </summary>
        [JsonProperty("id"), JsonPropertyName("id")]
        [Required(ErrorMessage = nameof(ErrorResultEnum.IdIsNull))]
        public long Id { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [JsonProperty("phone"), JsonPropertyName("phone")]
        [Required(ErrorMessage = nameof(ErrorResultEnum.PhoneIsNull))]
        public string Phone { get; set; }
    }
}
